<?php
function progresando($val, $row)
{  
    $span = round($val);
    $str=""; 
    $str.="<progress max='100' value='".$val."' class='pgrs' id='id_".$row."_".$val."'></progress>\n";  
    $str.="<span id='spn' class = 'span-bar'>".$span."%</span>&nbsp\n"; 
    return $str;
}